package inner_class;

class DotThis {

    public static void main(String[] args) {

        DotThis dotThis = new DotThis();
        dotThis.getInner().getDotThis().f();

        Inner inner = dotThis.new Inner();
        System.out.println(inner);
        inner.getDotThis().f();
    }

    private void f(){
        System.out.println("Dothis.f()");

    }
    //内部类
    class Inner{


        DotThis getDotThis(){
            return DotThis.this;
        }

    }

    Inner getInner(){
        return new Inner();
    }

}
